//
//  KzLog.swift
//  Trans
//
//  Created by zcj on 2024/12/18.
//  description: 日志功能

import Foundation

let LogDir = "TransLogDir"

let LogPauseFile = "TransPauseLog.txt"


class KzLog{
    static func AddPauseTransLog(msg:String){
        let file = FileController.createTempFile(DirName: LogDir, fileName: LogPauseFile)
        //将数据写入file
        FileController.writeToFile(fileUrl: URL(string: file)!, data:msg.data(using: .utf8)!)
    }
    
    static func ReadPauseTransLog(){
        let file = FileController.createTempFile(DirName: LogDir, fileName: LogPauseFile)
    }
    
}
